package com.mall.system.service.impl;

import com.mall.common.domain.MallUser;
import com.mall.system.mapper.UserMapper;
import com.mall.system.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wangy
 * @version 1.0
 * @description: TODO
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public MallUser findUserByPhone(String phone) {
        return userMapper.findUserByPhone(phone);
    }

    @Override
    public MallUser findUserById(Integer id) {
        return userMapper.findUserById(id);
    }
}
